package com.whz.generic.enhance;

/**
 * @author whz
 */
@FunctionalInterface
public interface EnhanceClassNameGenerator {

    /**
     * 生成类名
     *
     * @param sourceName source name
     * @return new enhanced class name
     */
    String generateName(String sourceName);

    public static class DefaultEnhanceClassNameGenerator implements EnhanceClassNameGenerator {

        private static final String SUFFIX = "$$MsCommon$$Enhance";

        @Override
        public String generateName(String sourceName) {
            return sourceName + SUFFIX;
        }
    }
}